<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{
	$unitName = '';
	$selectUnit = "SELECT itemUnit
	                 FROM item
	                WHERE itemId = ".$_REQUEST['itemId'];
	$selectUnitRes = mysql_query($selectUnit);
	if($row = mysql_fetch_array($selectUnitRes))
	{
		$unitName = $row['itemUnit'];
	}
	echo $unitName;
}
?>